package com.lu.statistics.common.constant;


public enum ResponseCode {
    ERROR(500, null),
    SUCCESS(200, null),
    CUSTOMER_EXISTS(14000, "客户信息已存在."),
    VERIFY_CODE_ERROR(10000, "验证码错误."),
    ACCOUNT_DISABLE(10001, "账户已被禁用."),
    USERNAME_PWD_ERROR(10002, "用户名或密码错误."),
    USER_NOT_EXISTS(10003, "手机账号不存在."),
    USER_EXISTS(10004, "该用户已存在或者手机号已被使用."),
    //member
    USERID_NULL_ERROR(10010, "userID不可为空"),
    ;

    private final Integer code;
    private final String msg;

    ResponseCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return msg;
    }
}